package com.iris.live.services.data.specifications;

import com.iris.live.services.data.models.用户Model;
import org.springframework.data.jpa.domain.Specification;


/**
 * Created by shixy on 2016/7/12.
 */
public class UserSpecifications {
    public static Specification<用户Model> isXuKeCodeEqual(String code) {
        return (root, query, cb) -> cb.equal(root.get("许可"), code);
    }
}
